/*--------------------------------------------------------------------------------
	DESCRIPTION: Code to construct all final tables and charts in Appendix

--------------------------------------------------------------------------------*/

global main_dir 	"..." //insert relevant directory of user
global data_dir		"$main_dir/data"
global code_dir		"$main_dir/code"

foreach x in a b c d e f g h {
	cap mkdir "$main_dir/output/tables/appendix_`x'"
	cap mkdir "$main_dir/output/figures/appendix_`x'"
}

//--------------------------------------------------------
//APPENDIX A
//--------------------------------------------------------

*APPENDIX TABLE A1
do "$code_dir/tables/appendix/table_a1.do"

*APPENDIX TABLE A2
do "$code_dir/tables/appendix/table_a2.do"

*APPENDIX FIGURES A1-A2
do "$code_dir/figures/appendix/figure_a1_a2.do"


//--------------------------------------------------------
//APPENDIX B
//--------------------------------------------------------

*APPENDIX FIGURES B1-B5
do "$code_dir/figures/appendix/figure_b1_b5.do"

*APPENDIX FIGURES B6-B9
do "$code_dir/figures/appendix/figure_b6_b9.do"

*APPENDIX FIGURES B10-B14
do "$code_dir/figures/appendix/figure_b10_b14.do"


//--------------------------------------------------------
//APPENDIX C
//--------------------------------------------------------

*APPENDIX TABLE C1
do "$code_dir/tables/appendix/table_c1.do"

*APPENDIX TABLE C2
do "$code_dir/tables/appendix/table_c2.do"

*APPENDIX FIGURE C1-C6
do "$code_dir/figures/appendix/figure_c1_c6.do"

*APPENDIX TABLE C3-C4
do "$code_dir/tables/appendix/table_c3_c4.do"

*APPENDIX FIGURE C7-C8
do "$code_dir/figures/appendix/figure_c7_c8.do"

*APPENDIX TABLE C5
do "$code_dir/tables/appendix/table_c5.do"

*APPENDIX TABLE C8
do "$code_dir/tables/appendix/table_c8.do"

*APPENDIX TABLE C9
do "$code_dir/tables/appendix/table_c9.do"

*APPENDIX TABLE C10-C13
do "$code_dir/tables/appendix/table_c10_c13.do"

*APPENDIX TABLE C14
do "$code_dir/tables/appendix/table_c14.do"

*APPENDIX FIGURE C9
do "$code_dir/figures/appendix/figure_c9.do"


//--------------------------------------------------------
//APPENDIX D
//--------------------------------------------------------

*APPENDIX TABLE D1-D2
do "$code_dir/tables/appendix/table_d1_d2.do"

*APPENDIX TABLE D3-D5
do "$code_dir/tables/appendix/table_d3_d5.do"

*APPENDIX FIGURE D1-D2
do "$code_dir/figures/appendix/figure_d1_d2.do"

*APPENDIX TABLE D6
do "$code_dir/tables/appendix/table_d6.do"

*APPENDIX TABLE D7
do "$code_dir/tables/appendix/table_d7.do"


//--------------------------------------------------------
//APPENDIX E
//--------------------------------------------------------

*APPENDIX TABLE E1-E2
do "$code_dir/tables/appendix/table_e1_e2.do"

*APPENDIX TABLE E3-E6
do "$code_dir/tables/appendix/table_e3_e6.do"

*APPENDIX FIGURE E1
do "$code_dir/figures/appendix/figure_e1.do"

*APPENDIX TABLE E7-E8
do "$code_dir/tables/appendix/table_e7_e8.do"

*APPENDIX FIGURE E2
do "$code_dir/figures/appendix/figure_e2.do"

*APPENDIX TABLE E9
do "$code_dir/tables/appendix/table_e9.do"

*APPENDIX FIGURE E3-E4
do "$code_dir/figures/appendix/figure_e3_e4.do"

*APPENDIX TABLE E10-E11
do "$code_dir/tables/appendix/table_e10_e11.do"


//--------------------------------------------------------
//APPENDIX F
//--------------------------------------------------------

*APPENDIX FIGURE F1
do "$code_dir/figures/appendix/figure_f1.do"

*APPENDIX FIGURE F2
do "$code_dir/figures/appendix/figure_f2.do"

*APPENDIX FIGURE F3
do "$code_dir/figures/appendix/figure_f3.do"

*APPENDIX FIGURE F4
do "$code_dir/figures/appendix/figure_f4.do"

*APPENDIX FIGURE F5
do "$code_dir/figures/appendix/figure_f5.do"

*APPENDIX TABLE F1
do "$code_dir/tables/appendix/table_f1.do"

*APPENDIX TABLE F2-F3
do "$code_dir/tables/appendix/table_f2_f3.do"

*APPENDIX TABLE F4
do "$code_dir/tables/appendix/table_f4.do"

*APPENDIX TABLE F5
do "$code_dir/tables/appendix/table_f5.do"

//--------------------------------------------------------
//APPENDIX G
//--------------------------------------------------------

*APPENDIX FIGURE G1-G5
*Must run "figure_g1_g2.R", "figure_g3_g4.R" and "figure_g5.R" in R. 

*APPENDIX TABLE G1
*Must run "table_g1.R" in R. 

//--------------------------------------------------------
//APPENDIX H
//--------------------------------------------------------

*APPENDIX FIGURE H1
do "$code_dir/figures/appendix/figure_h1.do"

